one more important detail- do not allow a toolchange if the machine has not been homed!!!
--- In
DynoMotion@yahoogroups.com, "morgtod" <todmorg@...> wrote:
>
> Here's the rough sequence
>
> Machine is already homed
>
> 1-move to machine cordinates z-4, then x0,y5
> 2-sw8 high //toolarm solenoid
> 3-wait for opto in 4 //toolarm in position sensor, toggle e-stop and printscreen warning if not
> 4-toggle sw4, wait 4 seconds //low speed drawbar, drop tool
> 5-check opto in 5 went low//drawbar sensor, make sure tool dropped, toggle e-stop and printscreen warning if not
> 6-g0z0 // move up to clear tool tray
> 7-turn tool tray to new tool // I have the tray setup as "A" for now, with the tools at 1" steps, ( g0a6
turns the tray to tool6 )
> 8-g0z-4 // drop down into pickup position
> 9-disable sw4 // grab the tool with low speed drawbar, the grabbing action lifts the tool off the tray far enough for the tray to swing away
> 10-check opto in 5 went high//make sure new tool has been grabbed, toggle e-stop and printscreen warning if not
> 11-sw8 low // toolarm retract
> 12-check opto in 3 // toolarm retracted sensor, toggle e-stop and printscreen warning if not
> 13- continue cutting
>
>
> This would get me going with one spindle, I would start on the 2nd after this is working.
>
> I'll post my toolchanger files in the files section of the group, one they are working.
>
>
> Thanks....
>
>
>
>
> --- In
DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Todd,
> > Â
> > Yes the persist.UserData[100] variables are global and persist from one execution to the next and/or from one thread/program to the next. So you could use that to pass info from the C program that does the Tool Change to the Spindle Program that turns on the Spindle so it knows which Spindle to turn on. But actually the Tool Number is downloaded to the Tool Change program in a persist variable so it is probably already there.
> > Â
> > Sorry we don't have more examples. There are a lot of variation in Tool Changers. The first step would probably be to try to do a tool change manually by toggling bits on the Digital IO Screen and/or Console Commands to see if you can find a sequence that works. If you describe the
sequence in detail I might be able to help.
> > Â
> > Regards
> > TK
> > Â
> >
> >
> > --- On Wed, 6/22/11, morgtod <todmorg@> wrote:
> >
> >
> > From: morgtod <todmorg@>
> > Subject: [DynoMotion] Re: Tool changer code - persist.UserData
> > To:
DynoMotion@yahoogroups.com> > Date: Wednesday, June 22, 2011, 10:17 AM
> >
> >
> > Â
> >
> >
> >
> >
> >
> > Does the persist.UserData store data for the next time the c program is run? Like for knowing which tool is in the chuck the next time the toolchange calls? There is a small toolchanger.c example, but a bit
more info would be helpful.
> >
> > Todd
> >
> > --- In
DynoMotion@yahoogroups.com, "morgtod" <todmorg@> wrote:
> > >
> > > Are there any tool changer examples? I have a 12 position rotary and a 10 position pick and place for 2 different spindles on the same machine ( 1-7000 rpm and 1-40000 rpm spindle ). I would like to be able to pick which spindle is going to be used by the tool #, like 49 and below turn on the low speed, and 50 and above turn on the high speed with an offset in the x because the high speed is a couple inces to the left.
> > >
> > > Note- The spindles are at a fixed X distance from each other.
> > >
> > > Todd
> > >
>
>
>